package com.ruoyi.mqtt.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.ruoyi.mqtt.dto.MqMessage;
import lombok.Data;

import java.util.Date;

@Data
@TableName("mq_message")
public class MessageEntity extends MqMessage {
    @TableId(type = IdType.AUTO)
    private Long id;
    /**
     * 每次发送的时间戳作为请求id
     */
    private String requestId;

    /**
     * send/receive
     */
    private String requestType;

    private String type;
    private String value;
    private Date createTime;
    private Date updateTime;
}
